package com.max.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Pattern;

@ApiModel("登录对象")
public class LoginDTO {

    @ApiModelProperty("登录名称")
    @Pattern(regexp = "^1[3-9]\\d{9}$")
    private String username;

    @ApiModelProperty("登录密码")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,20}$")
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
